<template>
	<view>
		<view class="follow-me" v-if="showFollowCard">
			<image src="/static/logo.png" class="logo"></image>
			<view class="content">
				<text class="name">公众号名称：爱芯房</text>
				<text class="summary" @click="showDetails()">{{copyText}}</text>
			</view>
			<button type="default" class="follow" @click="followWechat">关注</button>
		</view>
	</view>
</template>

<script>
	export default {
		name: "follow-me",
		data() {
			return {
				showFollowCard: true,
				copyText: '公众号简介：爱芯房是采用O2O发展模式，整个系统包含小业主小程序，客户小程序和工程管理人员app，体现为通过助力整个产品营造链的品质提升，在工程营造的全过程中，实时可以让业主和客户真正参与其中，达到助力营销和提升业主参与度和满意度的效果',
			};
		},
		methods: {
			showDetails() {
				uni.$showMsg(this.copyText)
			},
			followWechat() {
				this.showFollowCard = false
				uni.navigateTo({
					url: "/minepkg/follow/follow"
				})
				//跳转到关注公众号
			},
		}
	}
</script>

<style lang="scss" scoped>
	.follow-me {
		height: 200rpx;
		background: #FFFFFF;
		margin: 20rpx 0 0 0;
		width: 690rpx;
		border-radius: 20rpx;
		border: 2rpx solid #efefef;
		display: flex;
		flex-direction: row;
		height: 200rpx;
		align-items: center;

		.logo {
			margin-left: 35rpx;
			width: 89rpx;
			height: 109rpx;
		}

		.content {
			display: flex;
			flex-direction: column;
			margin-left: 60rpx;
			color: #333333;

			.name {
				align-items: flex-start;
				font-size: 30rpx;
				font-weight: bold;
			}

			.summary {
				align-items: flex-end;
				font-size: 24rpx;
				font-weight: 500;
				width: 300rpx;
				overflow: hidden;
				/* #ifndef APP-NVUE */
				white-space: nowrap;
				text-overflow: ellipsis;
				/* #endif */
				/* #ifdef APP-NVUE */
				lines: 1;
				text-overflow: ellipsis;
				/* #endif */
			}

		}

		.follow {
			font-size: 24rpx;
			font-weight: 500;
			margin-right: 20rpx;
			width: 120rpx;
			color: #FFFFFF;
			background: linear-gradient(90deg, #E93423 0%, #FB6858 100%);
			border-radius: 22rpx;
		}
	}
</style>
